/**********************************************************************************
Name:  LoyaltyInfoController
Copyright © 2012  Lodha Group
===================================================================================
===================================================================================
Purpose:
-------
Controller For Loyalty Info page 
===================================================================================
===================================================================================
History
-------
VERSION    AUTHOR                DATE             DETAIL              
1.0 -   CG Dev Team          25/06/2012      INITIAL DEVELOPMENT
**********************************************************************************/


public with sharing class LoyaltyInfoController {
		
	public transient list<LoyaltyReferral> allReferrals {get; set;}
	public transient list<LoyaltyDetails> allLoyaltyDetails {get; set;}
	public static string tabId {get; set;}
	public  LoyaltyInfoController(){
		try{
			//Load the Loyalty and lead referral list
			getAllReferrals();
			getLoyaltyDetails();		
	       	tabId=ApexPages.currentPage().getParameters().get('sfdc.tabName') ;  
        	
        } catch(Exception ex){
        	system.debug('Error on Lodaing LoyaltyInfo Constructor'+ex.getmessage());
        }
        
	}	
	private void getLoyaltyDetails(){
		
			allLoyaltyDetails= LoyaltyInfoUtilities.getLoyaltyDetails();
		
	} 
	
	private void getAllReferrals(){
	
			allReferrals= LoyaltyInfoUtilities.getReferrals();		
		
	}

}